# 列表推导式
a = [i for i in range(10)]
print(a)

multiples = [i for i in range(30) if i % 3 == 0]
print(multiples)

# 字典推导式
dict = {i: i for i in range(10)}
print(dict)
listdemo = ['Google', 'Runoob', 'Taobao']
dict = {i: len(i) for i in listdemo}
print(dict)

# 集合推导式
